package com.rosesoft.module.mail;

import org.apache.log4j.Logger;
/**
 * @FileName LogUtils.java
 * @Description: 
 * @author rose
 * @version 1.0
 * <p>Company: ROSE-SOFT</p>
 * <p>Copyright: Copyright (c) 2011</p>
 */
public class LogUtils {
	/**
	 * 打印到文件 正常信息
	 * @param msg
	 * @return void
	 * @author rose
	 */
	public static void printlnToFile(String msg){
		Logger log = Logger.getLogger("F");
		log.info(msg);
	}
	/**
	 * 打印到文件 错误信息
	 * @param msg
	 * @return void
	 * @author rose
	 */
	public static void printlnErrorToFile(String msg){
		Logger log = Logger.getLogger("E");
		log.error(msg);
	}
	public static void main(String[] args) {
		printlnErrorToFile("你好啊");
		printlnErrorToFile("你好啊");
	}
}
